	package ar.edu.utn.frgp.Banco.actions;

	
import ar.edu.utn.frgp.Banco.model.Servicios;
	import ar.edu.utn.frgp.Banco.service.IRecursoService;
	import com.opensymphony.xwork2.ActionSupport;
	import com.opensymphony.xwork2.ModelDriven;
	import org.springframework.beans.factory.annotation.Autowired;
	import java.util.ArrayList;
import java.util.List;

	public class AltaPagoServicioAction extends ActionSupport implements ModelDriven<Servicios> {
		
		@Autowired
		private IRecursoService recursoService;
		
		private List<Servicios> servicios = new ArrayList<Servicios>();

		private static final long serialVersionUID = 1L;

		public List<Servicios> getServicios() {
			return servicios;
		}

		public void setServicios(List<Servicios> servicios) {
			this.servicios = servicios;
		}

		@Override
		public String execute() throws Exception {
			setServicios(recursoService.getServicios());
			return SUCCESS;
		}

		public Servicios getModel() {
			return null;
		}
	}

